package au.com.twosquared.animalfarm.entities.animals.model;

/**
 * Defines all the possible stages of an Animals evolution life
 * 
 * @author Sam Luc <sam.luc@twosquared.com.au>
 * @version 1.0 Last Modified 2011-11-15
 * @since 2011-11-15
 * 
 */
public enum Type {
	EGG, BABY, BASIC, ADULT, ELDER, ULTRA;

	/**
	 * Returns the Type as a String when given a particular Type
	 * 
	 * @param type
	 *            the Type to be changed into String
	 * @return The output of the String
	 */
	public String getType(Type type) {
		switch (type) {
		case EGG:
			return "Egg";
		case BABY:
			return "Baby";
		case BASIC:
			return "Basic";
		case ADULT:
			return "Adult";
		case ELDER:
			return "Elder";
		case ULTRA:
			return "Ultra";
		default:
			return null;
		}
	}
}
